home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / showbcb.arc / BCB.DOC < prev   
Encoding:
Text File  |  1987-01-04  |  1.8 KB  |  35 lines

  1.                    BCB.ASM for Concurrent DOS
  2.                     by Howard Vigorita, NYACC
  3.  
  4. BCB is a diagnostic utility for use under Concurrent DOS. It has
  5. been written as a learning experience and exploring expedition
  6. into Concurrent DOS's disk buffering scheme.
  7.  
  8. BCB starts off by locating the SYSDAT structure and displays its
  9. address on the screen. From there it moves on to the XIOS header
  10. from which it copies and displays the disk parameter header (DPH)
  11. addresses for all of the disk drives. All addresses are shown in
  12. hexedecimal.
  13.  
  14. The DPH is then used to locate three more structures. The addresses
  15. of each drive's disk pararameter block (DPB) are read and displayed
  16. as well as the addresses of the directory and disk data buffer
  17. control block headers (BCBH).
  18.  
  19. From the BCBH's, the maximum number of buffer control blocks (BCB's)
  20. per process is shown. Then the buffer control block list root, which
  21. points to the first in a chain of BCB's, is used to trace and count
  22. the total number of BCB's available. While the tracing is being done,
  23. the high and low addresses of the BCB linked list are recorded and
  24. displayed. As each BCB is visited, the high and low addresses of the
  25. actual buffers themselves are also recorded and displayed. Note that
  26. for directory buffers, all BCB's, DPH's, and DPB's, the addresses are
  27. recorded as offsets from SYSDAT, while for disk data buffers they are
  28. absolute segment locations. Thus directory buffers and all BCB's must
  29. lie within the 64K SYSDAT segment, but disk data buffers need not.
  30.  
  31. The information displayed by this utility has proven helpful in
  32. using the SID debugger for further exploration. It should also
  33. prove useful in writing additional utilities to fine tune the buffer
  34. action.
  35.